﻿@model StaffingSystem.EF.View_LeaveList

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Plugins/layui/css/layui.css" rel="stylesheet" />
    <title>修改请假信息</title>
</head>


<body>
    <form id="form1" class="layui-form">
        <div style="margin-left: 50px; margin-top: 10px; ">
            <div class="layui-form-item">
                <input type="hidden" id="plID" value="@Model.PLID">
                <div class="layui-form-item">
                    <label class="layui-form-label">请假人：</label>
                    <div class="layui-input-inline">
                        <input type="text" id="userName" lay-verify="required" value="@Model.Name" autocomplete="off" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">请假类型：</label>
                    <div class="layui-input-inline" style="text-align:center">
                        <select id="leaveType">
                            <option value="@Model.TypeID">@Model.TypeName</option>
                        </select>
                    </div>
                    <label class="layui-form-label">审批状态：</label>
                    <div class="layui-input-inline" style="text-align:center">
                        <select id="leaveState">
                            <option>@Model.ApproveResult</option>
                            <option>同意</option>
                            <option>不同意</option>

                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">请假原因：</label>
                    <div class="layui-input-inline">
                        <input type="text" id="reason" lay-verify="required" class="layui-input" value="@Model.LeaveReason">
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">开始时间：</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" id="test1" type="text" value="@Model.LeaveTime.ToShortDateString()">
                        </div>
                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">结束时间：</label>
                        <div class="layui-input-inline">
                            <input class="layui-input" id="test2" type="text" value="@Model.EndTime.ToShortDateString()">
                        </div>
                    </div>
                </div>



                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注：</label>
                    <div class="layui-input-block">
                        <input type="text" value="@Model.Remark" class="layui-input" id="remark">
                    </div>
                </div>

                <div style="margin-left: 200px;margin-top: 20px;">
                    <button type="button" class="layui-btn layui-btn-normal layui-btn-radius" lay-submit lay-filter="btnUp" >保存</button>
                    <button id="btnClose" class="layui-btn layui-btn-normal layui-btn-radius">关闭页面</button>
                </div>
            </div>

        </div>
    </form>


    <script src="~/Plugins/layui/layui.js"></script>
    <script src="~/Scripts/ApplyMange/LeaveEdit.js"></script>

</body>
</html>

